"""market URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic import TemplateView

from wxapp.views import test, register, register_handle, get_items, get_goods_msg
from wxapp.views import get_carTypes
from wxapp.views import get_repairPosition
from wxapp.views import get_partsTypes
from wxapp.views import get_all_goods
from wxapp.views import goods_soldOut
from wxapp.views import get_my_shoppingCart
from wxapp.views import add_shoppingCart
from wxapp.views import del_shoppingCart
from wxapp.views import clear_shoppingCart


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^test/$', test),
    url(r'^get_carTypes/$',get_carTypes,name='get_carTypes'),
    url(r'^get_repairPosition/$',get_repairPosition,name='get_repairPosition'),
    url(r'^get_partsTypes/$',get_partsTypes,name='get_partsTypes'),
    url(r'^get_all_goods/$',get_all_goods,name='get_all_goods'),
    url(r'^goods_soldOut/$',goods_soldOut,name='goods_soldOut'),
    url(r'^get_my_shoppingCart/$',get_my_shoppingCart,name='get_my_shoppingCart'),
    url(r'^add_shoppingCart/$',add_shoppingCart,name='add_shoppingCart'),
    url(r'^del_shoppingCart/$',del_shoppingCart,name='del_shoppingCart'),
    url(r'^clear_shoppingCart/$',clear_shoppingCart,name='clear_shoppingCart'),
    url(r'^register/$', register),
    url(r'^register_post/$', register_handle),
    url(r'^$', TemplateView.as_view(template_name="index.html")),
    url(r'^get_items/$', get_items),
    url(r'^get_goods_msg/$', get_goods_msg)
]